<%--
  Created by IntelliJ IDEA.
  User: c66
  Date: 2017/7/20
  Time: 12:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>实习日志</title>
    <link rel="stylesheet" href="../../static/common/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/css/global.css">
    <link rel="stylesheet" href="../../static/css/table.css">
    <link rel="stylesheet" href="../../static/common/layui/css/layui.css">
</head>
<body>
<div style="margin:0px; background-color: white; margin:0 10px;"id="Vue" v-cloak>
    <div v-show="show">
        <blockquote class="layui-elem-quote">
            <a href="#" class="layui-btn layui-btn-small" @click="add">
                <i class="layui-icon">&#xe608;</i> 添加
            </a>
        </blockquote>

        <fieldset class="layui-elem-field">
            <legend>实习日志</legend>
            <div class="layui-field-box layui-form">
                <table class="layui-table admin-table">
                    <thead>
                    <tr>

                        <th>实习单位</th>
                        <th>指导老师评价</th>
                        <th>发布时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody id="content"></tbody>
                </table>
            </div>
        </fieldset>
        <div class="admin-table-page">
            <div id="paged" class="page">
            </div>
        </div>
    </div>
    <div v-show="detailsshow" v-cloak>
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>浏览日志</legend>
        </fieldset>
        <form class="layui-form" style="width: 500px">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label layui-form-newlabel_ren">实习单位</label>
                <div class="layui-input-inline">
                    <input  class="layui-input" name="employer"disabled="disabled" v-model="orgInfo.fullname" style="width:300px">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label layui-form-newlabel_ren">实习日志</label>
                <div style="margin-left: 110px;">
                    <div name="content" class="layui-textarea"  style="overflow:auto;height: 400px;width:600px;"disabled="disabled" id="hello"></div>
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label layui-form-newlabel_ren">教师评价</label>
            <div class="layui-input-block">
                <div  value="" class="layui-textarea"disabled="disabled" name="advisorappraise" id="hello1"></div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <input type="button" class="layui-btn" @click="reload" value="返回">
            </div>
        </div>
        </form>
    </div>
</div>

<%--模板1--%>
<script type="text/html" id="tpl">
    {{# layui.each(d.data, function(index, item){ }}
    <tr>

`        <td>{{ item.orgInfo.fullname}}</td>
        <td>{{ item.internLog.advisorappraise}}</td>
        {{#   var time = getYearMonthDate(item.internLog.date) }}
        <td>{{ time}}</td>
        <td>
            <a href="javascript:;" target="_blank" data-opt="details" data-id="{{item.internLog.id}}" class="layui-btn layui-btn-normal layui-btn-mini">预览</a>
            {{# if(item.internLog.advisorappraise ==""){ }}
            <a href="javascript:;" target="_self"  data-opt="edit" data-id="{{item.internLog.id}}" class="layui-btn layui-btn-mini">编辑</a>
            {{# };}}
        </td>
    </tr>
    {{# }); }}
</script>

<script>
    var  publisherid = ${sessionScope.currentUser.getId()};
</script>
<script src="../../static/common/axios.min.js"></script>
<script src="../../static/common/vue.min.js"></script>
<script src="../../static/common/layui/layui.js"></script>
<script src="../../static/js/student/practiceDiary1.js"></script>
<script type="text/javascript" src="../../static/common/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="../../static/common/jquery/jquery-1.11.1.min.js"></script>
<link rel="stylesheet" href="../../static/common/layui/css/layui.css">
</body>
</html>
